package com.sc.mockweipo.service;


import org.springframework.amqp.core.MessageListener;
import org.springframework.amqp.rabbit.annotation.RabbitListener;



/**
 * @author sc
 * Created on  2017/12/22
 */
@RabbitListener
public class BoyListener implements MessageListener{


    @Override
    public void onMessage(org.springframework.amqp.core.Message message) {
        System.out.println(message.getMessageProperties().getConsumerQueue()+"看到"+message.getMessageProperties().getReceivedExchange()+"发朋友圈"+new String(message.getBody()));
    }
}
